<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="/WEB-INF/layouts/taglib.jsp"%>

<script>
    $(function(){
        alert("@@@@@@");
    })
</script>
<form action="/enrollandpay/student/save" id="studentForm" method="post" >
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"
                aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">学生信息</h4>
    </div>
    <div class="modal-body">
        <!--弹出框样式-->
        <style>
            ul, li {
                list-style: none;
            }
        </style>
        <!--弹出框样式end-->

        <ul>
            <!-- <li class="row">
                    <div class="col-sm-2" style="padding: 0.2em 0">编号：</div>
                    <div>
                        <input type="text" name="id" class="col-sm-8 col-sm-8-1"
                            placeholder="请输入编号" style="padding: 0.2em 0.5em;">
                    </div>
                </li> -->
            <input type="hidden" name="id" value="${thisStudent.id}">

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">学生姓名：</div>
                <div>
                    <input type="text" name="name" value="${thisStudent.name}" class="col-sm-8 col-sm-8-1"
                           placeholder="请输入学生姓名" style="padding: 0.2em 0.5em;">
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">身份证号码：</div>
                <div>
                    <input type="text" name="studentNo" value="${thisStudent.studentNo}" class="col-sm-8 col-sm-8-1"
                           placeholder="请输入身份证号码" style="padding: 0.2em 0.5em;">
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">密码：</div>
                <div>
                    <input type="text" name="password" value="${thisStudent.password}" class="col-sm-8 col-sm-8-1"
                           placeholder="请输入密码" style="padding: 0.2em 0.5em;">
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">性别：</div>
                <div>
                    <input type="radio" name="gender" value="0" ${thisStudent.gender eq '0' ? 'selected=selected':''}  />女
                    <input type="radio" name="gender" value="1" ${thisStudent.gender eq '1'? 'selected=selected':''} />男
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">出生日期：</div>
                <div>
                    <!--
                    <input type="text" id="birthday" name="birthday" value="<fmt:formatDate value='${thisActivity.birthday}' pattern='yyyy/MM/dd' />"
                     -->
                    <input type="text" id="birthday" name="birthday" value="${thisActivity.birthday}"
                           class="text col-sm-8 col-sm-8-1" onclick="laydate()" readonly
                           style="padding: 0.2em 0.5em;" value=""> </input>
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">所属班级：</div>
                <select name=classId>
                    <c:forEach items="${clazz}" var="c">
                        <option value="${c.id }" ${thisStudent.classId eq c.id ? "selected=selected":""}>${c.name }</option>
                    </c:forEach>
                </select>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">家长姓名：</div>
                <div>
                    <input type="text" name="parentName" class="col-sm-8 col-sm-8-1" value="${thisStudent.parentName}"
                           placeholder="请输入家长姓名" style="padding: 0.2em 0.5em;">
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">家长电话：</div>
                <div>
                    <input type="text" name="tel" value="${thisStudent.tel}" class="col-sm-8 col-sm-8-1"
                           placeholder="请输入家长电话" style="padding: 0.2em 0.5em;">
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">信用卡号：</div>
                <div>
                    <input type="text" name="creditCardNo" value="${thisStudent.creditCardNo}"
                           class="col-sm-8 col-sm-8-1" placeholder="请输入信用卡号"
                           style="padding: 0.2em 0.5em;">
                </div>
            </li>

            <li class="row">
                <div class="col-sm-2" style="padding: 0.2em 0">备注：</div>
                <div>
                    <input type="text" name="note" value="${thisStudent.note}" class="col-sm-8 col-sm-8-1"
                           placeholder="请输入备注" style="padding: 0.2em 0.5em;">
                </div>
            </li>
            <input type="hidden" name="token" value="${token}">
        </ul>
    </div><!-- modal-body end -->
    <div class="modal-footer">
        <button type="button" class="btn btn-default" id="stuDismiss" data-dismiss="modal">关闭 </button>
        <button type="button" class="btn btn-primary" onclick="doSave('student')">保存</button>
    </div>
</form>
<!-- /.modal-content -->

